﻿#pragma once

/*#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
			processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")*/	

#include "framework.h"
#include "resource.h"
#include "ContrlPort.h"


#define DATAPORT	20
#define WM_CREATED	10320


//font
#define MYFONT	CreateFont(-15, -7.5, 0, 0, FW_NORMAL, FALSE,\
FALSE, FALSE, DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, CLIP_CHARACTER_PRECIS,\
DEFAULT_QUALITY, FF_DONTCARE, _T("微软雅黑"))


//主窗口矩形
RECT MainRect;
//主窗口 宽和高
POINT	MainWinSize;
//主窗口 hwnd
HWND MAINHWND;

//日志 hwnd
HWND logHwnd;
HFONT hFont;

//主窗口客户区
RECT MainClientRect;

//当前路径
string	curPath;

//对话框处理函数
INT_PTR CALLBACK PROC_IDD_LOGS(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK PROC_IDD_USER(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);